how to use javascript libraries